﻿@model Wombat.Data.Model.Dtos.CodeTagDto

@{
    ViewBag.Title = "Details of a code tag";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
        <fieldset>

<h2>Details of @Model.Name</h2>

<br />
@Html.LabelFor(m => m.Id)
@Html.ValueFor(m => m.Id)<br/>

@Html.LabelFor(m => m.Name)
            @Html.ValueFor(m => m.Name) <br/>
            
            @Html.Label("Parent Tag")
    <p>@(ViewBag.Parent ?? "No parent")</p>
     
            @Html.Label("Input Parameters:")
<pre>
@ViewBag.ParametersString
</pre>

@Html.LabelFor(m => m.Code)<br/>
<div class="indented-groupbox">
<pre>
@Html.ValueFor(m => m.Code)
</pre>
</div>

@Html.LabelFor(m => m.Guid)
@Html.ValueFor(m => m.Guid) <br/>

<br/>

            </fieldset>
@Html.ActionLink("Delete this tag", "Delete", "Tag", new { id = Model.Id}, null)